#!/bin/bash

# yay scrot time
rm /tmp/lock.png
scrot /tmp/lock.png

# imagemagik is fun
convert /tmp/lock.png -paint 1 -blur 8x5 ~/.config/i3/lockfox.png -gravity center -composite -matte /tmp/lock.png

# lock agents
command -v ratbox-respond && killall -1 ratbox-respond
command -v keepassxc && keepassxc --lock
command -v gpgconf && gpgconf --reload gpg-agent

# hmm i3lock
i3lock -e -f -c 000000 -i /tmp/lock.png

